package com.learning.platform.controller;

import com.learning.platform.dto.ApiResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/v1")
public class HealthController {
    
    @GetMapping("/health")
    public ApiResponse<Map<String, Boolean>> health() {
        return ApiResponse.success(Map.of("ok", true));
    }
}
